﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminSignUpAdmin.aspx.cs" Inherits="TeamNitro.AdminSignUpAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentHolder" runat="server">
<style type="text/css">
        .style1
        {
            width: 315px;
        }
        .style2
        {
            width: 160px;
        }
        .style3
        {
            height: 30px;
        }
        .style4
        {
            width: 160px;
            }
        .style5
        {
            width: 315px;
            height: 30px;
        }
        .style6
        {
            width: 160px;
            height: 40px;
        }
        .style7
        {
            width: 315px;
            height: 40px;
        }
        .style8
        {
            height: 40px;
        }
        .style9
        {
            width: 160px;
            height: 108px;
        }
        .style10
        {
            width: 315px;
            height: 108px;
        }
        .style11
        {
            height: 108px;
        }
        .style12
        {
            width: 160px;
            height: 49px;
        }
        .style13
        {
            width: 315px;
            height: 49px;
        }
        .style14
        {
            height: 49px;
        }
        .style15
        {
            width: 160px;
            height: 43px;
        }
        .style16
        {
            width: 315px;
            height: 43px;
        }
        .style17
        {
            height: 43px;
        }
        .style18
        {
            width: 40px;
        }
        .style19
        {
            height: 30px;
            width: 40px;
        }
        .style20
        {
            width: 40px;
            height: 49px;
        }
        .style21
        {
            width: 40px;
            height: 40px;
        }
        .style22
        {
            width: 40px;
            height: 108px;
        }
        .style23
        {
            width: 40px;
            height: 43px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentHolder" runat="server">
<table style="width: 100%;">
        <tr>
            <td class="style18">
                &nbsp;</td>
            <td colspan="3">
                <h2>
                    <asp:Label ID="lblAdminTitle" runat="server" Text="Create Admin Account"></asp:Label>
                </h2>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style3" colspan="3">
                    <asp:Label ID="lblResult" runat="server" ForeColor="#00CC00" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style3" colspan="3">
                    *Required Field</td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style4">
                Admin ID*</td>
            <td class="style5">
                <asp:TextBox 
            runat="server" Width="300px" ID="tbxAdminID"></asp:TextBox>

                    <br />
                <asp:RegularExpressionValidator ID="revStuID" runat="server" 
                    ControlToValidate="tbxAdminID" 
                    
                    ErrorMessage="Starts with &quot;5&quot; Digits and Ends with &quot;1&quot; Alphabetic" ForeColor="#FF3300" 
                    ValidationExpression="[0-9]{5}[A-Za-z]$" Width="300px"></asp:RegularExpressionValidator>

                    </td>
            <td class="style3">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxAdminID" ErrorMessage="Required ID" Display="Dynamic" 
            ID="rfvAdminID"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style18">
                &nbsp;</td>
            <td class="style2">
                Name*&nbsp;&nbsp;</td>
            <td class="style1">
                <asp:TextBox 
            runat="server" Width="300px" ID="tbxAdminName"></asp:TextBox>

                    </td>
            <td height="30">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxAdminName" ErrorMessage="Required Name" Display="Dynamic" 
            ID="rfvAdminName"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style18">
                &nbsp;</td>
            <td class="style2">
                Password*</td>
            <td class="style1">
                <asp:TextBox 
            runat="server" TextMode="Password" Width="300px" ID="tbxAdminPassword"></asp:TextBox>

                    </td>
            <td height="30">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxAdminPassword" ErrorMessage="Required Password" 
            Display="Dynamic" ID="rfvAdminPassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style20">
            </td>
            <td class="style12">
                Re-enter Password*<br />
            </td>
            <td class="style13">
                <asp:TextBox 
            runat="server" TextMode="Password" Width="300px" ID="tbxAdminRePassword"></asp:TextBox>

                    <br />
                <asp:CompareValidator 
            runat="server" ControlToCompare="tbxAdminPassword" 
            ForeColor="#FF3300" ControlToValidate="tbxAdminRePassword" 
            ErrorMessage="Password not match" Display="Dynamic" ID="cvAdminPassword"></asp:CompareValidator>
            </td>
            <td class="style14">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxAdminRePassword" 
            ErrorMessage="Required Re-enter Password" Display="Dynamic" 
            ID="rfvAdminRePassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style21">
                &nbsp;</td>
            <td class="style6">
                Contact Number*&nbsp;&nbsp;&nbsp;<br />
            </td>
            <td class="style7">
                <br />
                <asp:TextBox 
            runat="server" Width="300px" ID="tbxAdminContact"></asp:TextBox>

                    <br />
        <asp:RegularExpressionValidator ID="revAdminContact" runat="server" 
                        ControlToValidate="tbxAdminContact" ErrorMessage="Please Only Enter &quot;8&quot; Digits" 
                        ForeColor="#FF3300" ValidationExpression="[0-9]{8}"></asp:RegularExpressionValidator>
            </td>
            <td class="style8">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxAdminContact" ErrorMessage="Required Contact Number" 
            Display="Dynamic" ID="rfvAdminContact"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style22">
                &nbsp;</td>
            <td class="style9">
                Address*<br />
                <br />
                <br />
                <br />
            </td>
            <td class="style10">
                <asp:TextBox 
            runat="server" TextMode="MultiLine" Height="82px" Width="300px" 
            ID="tbxAdminAddress"></asp:TextBox>

                    </td>
            <td class="style11">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxAdminAddress" ErrorMessage="Required Address" 
            Display="Dynamic" ID="rfvAdminAddress"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style23">
                &nbsp;</td>
            <td class="style15">
                Email*<br />
            </td>
            <td class="style16">
                <asp:TextBox 
            runat="server" Width="300px" ID="tbxAdminEmail"></asp:TextBox>

                    &nbsp;<br />
        <asp:RegularExpressionValidator ID="rexAdminEmail" runat="server" 
            ControlToValidate="tbxAdminEmail" ErrorMessage="RegularExpressionValidator" 
            ForeColor="#FF3300" 
                    ValidationExpression="[\w-]+@([\w-]+\.)+[\w-]+">Enter Valid Email Address (e.g. admin@gmail.com)</asp:RegularExpressionValidator>
            </td>
            <td class="style17">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxAdminEmail" ErrorMessage="Required Email" 
            Display="Dynamic" ID="rfvAdminEmail"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style18">
                &nbsp;</td>
            <td class="style2">
                <br />
        <asp:Button runat="server" Text="Create" Width="90px" ID="btnAdminCreate" 
            OnClick="btnAdminCreate_Click"></asp:Button>
            </td>
            <td class="style1">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
